<template lang="">
    <div>
            <van-field v-model="name" label="名称" placeholder="请输入用户名" />
            <van-button @click='add'>添加</van-button>
    </div>
</template>
<script>
export default {
    data(){
        return{
            name:''
        }
    },
    methods: {
        add(){
            this.$axios.post('cateM',{'name':this.name}).then(res=>{
            })
        }
    },
}
</script>
<style lang="">
    
</style>